<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>赋值运算符</title>
</head>

<body>
  <script>
    // 1.需求想要num里面的变量+1加完再把计算结果存到num
        
    let num=1
    // 变量加三
    num += 3
    console.log(num)

    // 变量加三的写法
    let num1=1
    num1 =num1+3
    console.log(num1)


  </script>
</body>

</html>